package com.gallop.common.reliable.config;

import lombok.Data;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.cloud.context.config.annotation.RefreshScope;
import org.springframework.context.annotation.Configuration;

@Configuration
@RefreshScope
@Data
public class ReliableDeliveryConfig {

    // TODO prefix
    @Value("${gallop.mq.rd.lock.timeout:10}")
    private int lockTimeout;
    @Value("${gallop.mq.rd.mutex.timeout:604800}")
    private int mutexKeepSeconds;
    @Value("${gallop.mq.rd.default.group:DEFAULT_GROUP}")
    private String defaultGroup;
}
